const fs = require('fs');
const path = require('path');
var filePath = path.join(__dirname,'/1.txt');
//同步执行(当文件很大时，程序等待)
var fileContent = fs.readFileSync(filePath);
console.log(fileContent.toString('utf-8'));
console.log("同步代码执行");
